package com.siyuanren.gcocp.service;

import com.siyuanren.gcocp.dto.ActiveInviteDTO;
import com.siyuanren.gcocp.dto.wx.WxUserVoucherDTO;
import com.siyuanren.gcocp.entity.WxActive;
import com.siyuanren.gcocp.vo.QueryActiveVO;
import com.siyuanren.gcocp.vo.QueryActiveVoucherVO;
import com.siyuanren.gcocp.vo.SendVoucherVO;
import com.siyuanren.gcocp.vo.StartActiveVO;
import me.chanjar.weixin.common.exception.WxErrorException;
import org.springframework.transaction.annotation.Transactional;

import java.io.IOException;
import java.util.List;

/**
 * Created by   anxing
 * Project_name gcocp-parent
 * Path         com.siyuanren.gcocp.service
 * Date         2018/6/8
 * Time         15:15
 * Description
 */
public interface ActiveService {
    /**
     * 返回活动
     * @param id
     * @return
     */
    public WxActive getById(Integer id);

    /**
     * 查询活动相关信息
     * @param activeVO
     * @return
     */
    ActiveInviteDTO getActiveDetail(QueryActiveVO activeVO);

    /**
     * 参加活动
     * @param vo
     */
    void startActive(StartActiveVO vo) throws WxErrorException, IOException;

    /**
     * 通过扫描优惠券二维码, 发送优惠券
     * @param vo
     */
    void sendVoucher(SendVoucherVO vo);
}
